package com.vastcom.sigma.admin.dao;

import com.vastcom.sigma.admin.model.Upb;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface UpblockChainDao extends JpaRepository<Upb,String> {

    @Query("select u  from Upb u order by u.sj desc ")
    List<Upb> getAllUpbloackchain();
}
